<%--
  Created by IntelliJ IDEA.
  User: lutao
  Date: 2017/7/18
  Time: 13:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>

    <title>添加活动图片</title>
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add">
        <input id="tid" name="tid" value="${resource.tid}" type="hidden">


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">资源标题：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${resource.resourceName}" id="resourceName" name="resourceName">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">资源类型：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" id="resourceType" name="resourceType">

                        <option value="1" <c:if test="${resource.resourceType==1}">selected</c:if>>图片</option>
                        <option value="2" <c:if test="${resource.resourceType==2}">selected</c:if>>视频</option>


                </select>

            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">资源地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="btn-upload form-group">

                 <%--   <img src="${picPath}/${resource.resourceUrl}" width="100px" height="100px">--%>
                   <input class="input-text upload-url" value="${resource.resourceUrl}" type="text" name="resourceUrl" id="photo" readonly nullmsg="请添加附件！" style="width:200px">
                    <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                  <input type="file" multiple name="location" class="input-file">

                </span>
            </div>
        </div>


        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" id="advertSubmit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>

    </form>
</article>


<script type="text/javascript" src="/static/js/admin/resource/resource.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
